package com.sma.renamefilewindows.utils.classe;

import javax.swing.JComboBox;

/**
 *
 * @author SMA
 */
public class PositionUtils {
    public static interface LibellePosition {
        public static final String AVANT        = "Avant le texte";
        public static final String APRES        = "Après le texte";
        public static final String EXTENSION    = "Comme extension";
    }
    public static enum Position {
        AVANT, APRES, EXTENSION
    }
    
    public static void initComboListPosition(JComboBox positionComboBox){
        positionComboBox.removeAllItems();
        positionComboBox.addItem(new Couple<PositionUtils.Position>(PositionUtils.Position.AVANT, PositionUtils.LibellePosition.AVANT));
        positionComboBox.addItem(new Couple<PositionUtils.Position>(PositionUtils.Position.APRES, PositionUtils.LibellePosition.APRES));
        positionComboBox.addItem(new Couple<PositionUtils.Position>(PositionUtils.Position.EXTENSION, PositionUtils.LibellePosition.EXTENSION));
       // positionComboBox.setSelectedItem(0);
    }
    
    
}
